#include<stdio.h>
void main()
{
	int a;
	fine:
	scanf("%2d",&a);
	if(a>=9&&a<=15)
	printf("%c",a+49);
	else if(a>=16&&a<=21)
	printf("%c",a+75);
	else if(a>=22&&a<=47)
	printf("%c",a+10);
	else if(a>=48&&a<=73)
	printf("%c",a+17);
	else if(a>=74&&a<=99)
	printf("%c",a+23);
	goto fine;
}
